import React, { Component } from 'react'

export default class Button extends Component {
    render() {
        console.log(this.props);
        let {children} = this.props;// children属性可以获取组件调用对标签中的内容
        return (
            <button>{children}</button>
        )
    }
}
